<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UserCoupon extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        if(!Schema::HasTable('user_coupons')){
             Schema::create('user_coupons', function (Blueprint $table){
                $table->increments('id');
                $table->integer('uid');
                $table->integer('cid');
             });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        // drop::table('user_coupon');
    }
}
